package fuza.android.thetrafficsigns;

import android.os.Bundle;
import android.app.Activity;
import android.text.Html;
import android.widget.TextView;

public class DetailLaws extends Activity {
    DBHandler db = new DBHandler(this);
	String id_pelaku;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_detail_laws);
		
		TextView title = (TextView) findViewById(R.id.trafsignmenu);
		TextView konten = (TextView) findViewById(R.id.texttrafsign);
		
		Bundle extras = getIntent().getExtras();
		id_pelaku = extras.getString("id");
		Laws p = db.getLawsById(id_pelaku);
		
		title.setText(p.getN_pelaku());
		String result = p.getIsi_peraturan();
		konten.setText(Html.fromHtml(result));
	}

	/*@Overrid
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.detail_laws, menu);
		return true;
	}*/

}
